package com.ruoyi.hr.service.impl.foreignKey;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.hr.domain.foreignKey.EcdCity;
import com.ruoyi.hr.mapper.foreignKey.EcdCityMapper;
import com.ruoyi.hr.service.foreignkey.EcdCityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class EcdCityServiceImpl implements EcdCityService {
   @Autowired
    EcdCityMapper ecdCityMapper;

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<EcdCity> findAll() {
        return ecdCityMapper.findAll();
    }
}
